﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using LogAnProject;

namespace ClassLibrary1
{
    [TestFixture]
    public class Class1
    {
        [Test] //The [Test] attribute can be put on a method to denote it as an automated test to be invoked.
        [Category("Fast Tests")]
        public void IsValidFileName_validFileLowerCased_ReturnsTrue()   //TestEdilenMetodAdi_MetodunMantiginidurumu_BudurumdakiBeklenensonuc.
        {
            //Arrange objects, creating and setting them up as necessary.
            LogAnalyzer lg = new LogAnalyzer();

            //Act on an object.
            bool result = lg.IsValidLogFileName("whatever.slf");

            //Assert that something is as expected.
            Assert.IsTrue(result, "dosya adinda hata!");

        }

        [Test]
        [Category("Fast Tests")]
        public void IsValidFileName_validFileUpperCased_ReturnsTrue()
        {
            LogAnalyzer lg = new LogAnalyzer();
            bool result = lg.IsValidLogFileName("whatever.SLF");
            Assert.IsTrue(result, "Buyuk harf geldimi hata!");

        }
    }
}
